<template>
    <Widget class="button" v-bind="$props">
        <el-button v-if="type !== 'text'" :type="type" :size="size" :plain="plain" @click="emit('click')">{{value}}</el-button>
        <el-link @click="emit('click')" type="primary" v-else>{{value}}</el-link>
    </Widget>
</template>

<script>

import {Widget} from 'hb-full-cli' ;

export default Widget({

    emits:[
        'click'
    ],

    props:{
        value:{
            type:String,
            default:''
        },
        type:{
            type:String
        },
	    plain: {
			type: Boolean,
		    default: false,
	    },
        size:{
            type:String,
            default:'default'
        }
    }
}) ;

</script>
